package com.atguigu.tingshu.payment.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/***
 * service-payment feign调用接口
 * ClientController --> AccountPayClientController
 */
@FeignClient(name = "service-payment",path = "/client/payment/accountPay",contextId = "accountPayFeignClient")
public interface AccountPayFeignClient {

    /**
     * 获取账户余额支付url
     * @param params
     * @return
     */
    @GetMapping("/getPayInfoFromAccount")
    public String getPayInfoFromAccount(@RequestParam Map<String,String> params);


}
